package com.api.chatai.service.Impl;

import com.api.chatai.service.GoodsService;
import com.api.chatai.domain.pojo.Goods;
import com.api.chatai.mapper.GoodsMapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 * 商品 服务实现类
 * </p>
 *
 * @author ARE
 * @since 2024-08-04
 */
@Service
@RequiredArgsConstructor
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {
    /**
     * 购买商品并生成订单
     * @param goodsId
     * @param userId
     * @return
     */
    @Override
    public String buy(Long goodsId, Long userId) {
        return null;
    }
}

